//
//  NSDictionary+BPRoutes.m
//  BPRoutes_Example
//
//  Created by 404 on 2020/9/4.
//  Copyright © 2020 xuhongji. All rights reserved.
//

#import "NSDictionary+BPRoutes.h"

@implementation NSDictionary (BPRoutes)

- (NSString *)convert2JsonString{
    NSError *err;
    NSData *jsonData = [NSJSONSerialization dataWithJSONObject:self options:0 error:&err];
    
    NSString *jsonString;
    if (!jsonData) {
        NSLog(@"%@",err);
    }else{
        jsonString = [[NSString alloc]initWithData:jsonData encoding:NSUTF8StringEncoding];
    }
    return jsonString;
}

@end
